package com.bauer.java.drools;

import org.kie.api.KieServices;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;

/**
 * @Author ：rui.wei
 * @Date ：Created in 15:35 2018/8/23
 * @Description：
 */
public class HelloWord {

    public static void main(String[] args) {
        KieServices kieServices = KieServices.Factory.get();
        KieContainer kieContainer = kieServices.newKieClasspathContainer();
        KieSession kieSession = kieContainer.newKieSession("sdfas");
        User user = new User();
        user.setAge(21);
        user.setAdu(2);
        user.setName("jhah");
        kieSession.insert(user);
        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
